package com.hua.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hua.pojo.Comment;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 遇见狂神说
 * @since 2020-06-30
 */
@Repository
public interface CommentMapper extends BaseMapper<Comment> {
	Integer findQuestionByAuthorCount(String uid);

	/**
	 * 获取问题的回复
	 */

	List<Comment> findCommentQuestion(String uid);

	/**
	 * 获取博客的回复
	 */
	List<Comment> findCommentBlog(String uid);

}
